package com.gitee.wsl.struct.grammar.ast.node

import com.gitee.wsl.struct.grammar.ast.node.ASTNode

open class LeafNode(
    type: NodeType,
    startOffset: Int,
    endOffset: Int
) : Node(type, startOffset, endOffset) {
    override val children: List<ASTNode>
        get() = EMPTY_CHILDREN

    companion object {
        private val EMPTY_CHILDREN = ArrayList<ASTNode>(0)
    }
}